package com.zkj.controller;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author: zhangKaiJun
 * @createTime：2024/8/22
 * @description：
 */
@SpringBootApplication
@MapperScan("com.zkj.mapper")
@ComponentScan(basePackages = {"com.zkj"})
@EnableTransactionManagement // 开启注解方式的事物
@EnableCaching // 开启缓存注解
@EnableScheduling // 开启定时任务
public class serverApplication {
    public static void main(String[] args) {
        SpringApplication.run(serverApplication.class, args);
    }
}
